package nl.hanze.designpatterns.mvc.view;

import java.awt.GridLayout;
import java.awt.event.ActionEvent;

import nl.hanze.designpatterns.mvc.model.MainModel;

public class ShowTicketsView extends View{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private View allTicketsView;
	private View newTicketView;
	private MainModel model;
	
	
	public ShowTicketsView(MainModel model){
		this.init(model);
		this.addItems();
	}
	
	private void init(MainModel model){
		this.model = model;
		this.setLayout(new GridLayout(0,2));
		this.allTicketsView = new AllTicketsView(this.model);
		this.newTicketView = new SelectedTicketView(this.model);
	}
	
	private void addItems(){
		this.add(this.allTicketsView);
		this.add(this.newTicketView);
	}
	

	@Override
	public void actionPerformed(ActionEvent arg0) {
		// TODO Auto-generated method stub
		
	}

}
